package com.ebring.shareEducation.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.math.BigDecimal;

@AllArgsConstructor
@NoArgsConstructor
@Data
@Accessors(chain = true)
@Table(name = "transaction")
public class Transaction implements Serializable {

    @Id
    // ID
    private String id;

    // 用户ID
    private String userId;

    // 币种ID
    private String coinId;

    // 创建时间
    private String createTime;
    // 实际到账金额
    private BigDecimal arrival;

    // 银行卡ID
    private String bankId;
    // 费用
    private BigDecimal fee;
    // 状态：1，处理中；2，未打款，3，交易完成
    private Integer status;

    // 处理时间
    private String processTime;

    // 备注
    private String marks;

    // 处理人ID
    private String handlerId;

    // 提交数量
    private BigDecimal total;

    // 汇率
    private BigDecimal rate;


    // 类型：1，买入2，卖出
    private Integer type;

    // 汇款银行ID
    private String remittanceBankId;

    // 备用字段3
    private String remark1;
    private String remark2;
    private String remark3;
    private String muserid;


}
